package com.ydjk.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ydjk.common.annotation.Excel;

import java.util.Date;

/**
 * 随访管理对象 jk_fllowup
 *
 * @author ydjk
 * @date 2023-08-30
 */
@TableName(value = "jk_fllowup")
public class JkFllowup {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 随访名称
     */
//    @Excel(name = "随访名称")
    @TableField(value = "fllowup_name")
    private String fllowupName;

    /**
     * 姓名
     */
    @Excel(name = "姓名")
    @TableField(value = "user_name")
    private String userName;

    /**
     * 病案号
     */
    @Excel(name = "病案号")
    @TableField(value = "case_id")
    private String caseId;

    /**
     * 主管医生
     */
    @Excel(name = "主管医生")
    @TableField(value = "manager_doctor")
    private String managerDoctor;

    /**
     * 出院日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出院日期", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "leave_time")
    private Date leaveTime;

    /**
     * 是否知晓
     */
    @Excel(name = "复查时间", dictType = "if_know")
    @TableField(value = "if_know")
    private Integer ifKnow;

    @Excel(name = "复查方式", defaultValue = "已知晓")
    @TableField(exist = false)
    private Integer ifKnow1;

    @Excel(name = "换药时机", defaultValue = "已知晓")
    @TableField(exist = false)
    private Integer ifKnow2;

    @Excel(name = "康复动作", defaultValue = "已知晓")
    @TableField(exist = false)
    private Integer ifKnow3;

    /**
     * 创建人
     */
    @TableField(value = "user_id")
    private Long userId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "create_time")
    private Date createTime;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setFllowupName(String fllowupName) {
        this.fllowupName = fllowupName;
    }

    public String getFllowupName() {
        return fllowupName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }

    public void setCaseId(String caseId) {
        this.caseId = caseId;
    }

    public String getCaseId() {
        return caseId;
    }

    public void setManagerDoctor(String managerDoctor) {
        this.managerDoctor = managerDoctor;
    }

    public String getManagerDoctor() {
        return managerDoctor;
    }

    public void setLeaveTime(Date leaveTime) {
        this.leaveTime = leaveTime;
    }

    public Date getLeaveTime() {
        return leaveTime;
    }

    public void setIfKnow(Integer ifKnow) {
        this.ifKnow = ifKnow;
    }

    public Integer getIfKnow() {
        return ifKnow;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getIfKnow1() {
        return ifKnow1;
    }

    public void setIfKnow1(Integer ifKnow1) {
        this.ifKnow1 = ifKnow1;
    }

    public Integer getIfKnow2() {
        return ifKnow2;
    }

    public void setIfKnow2(Integer ifKnow2) {
        this.ifKnow2 = ifKnow2;
    }

    public Integer getIfKnow3() {
        return ifKnow3;
    }

    public void setIfKnow3(Integer ifKnow3) {
        this.ifKnow3 = ifKnow3;
    }
}
